import request from '@/utils/request'

// 提交预登记申请
export function submitPreCheckIn(data) {
  return request({
    url: '/wechat/pre/register/submit',
    method: 'post',
    data
  })
}

// 预登记详情
export function preCheckInDetail(registerId) {
  return request({
    url: `/wechat/pre/register/${registerId}`,
    method: 'get',
  })
}

// 获取我的预登记列表
export function myPreCheckInList() {
  return request({
    url: '/wechat/pre/register/my/list',
    method: 'get',
  })
}

// 取消登记申请
export function cancelPreCheckIn(registerId) {
  return request({
    url: `/wechat/pre/register/${registerId}`,
    method: 'delete',
  })
}


// 查询最新的预登记信息
export function getLatestPreCheckIn() {
  return request({
    url: '/wechat/pre/register/latest',
    method: 'get',
  })
}
